<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'coffee-shop-image-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'shopId'); ?>
		<?php echo $form->textField($model,'shopId'); ?>
		<?php echo $form->error($model,'shopId'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'title'); ?>
		<?php echo $form->textField($model,'title',array('size'=>60,'maxlength'=>255)); ?>
		<?php echo $form->error($model,'title'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'description'); ?>
		<?php echo $form->textField($model,'description',array('size'=>60,'maxlength'=>255)); ?>
		<?php echo $form->error($model,'description'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'filePath'); ?>
		<?php echo $form->textField($model,'filePath',array('size'=>60,'maxlength'=>255)); ?>
		<?php echo $form->error($model,'filePath'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'thumbPath'); ?>
		<?php echo $form->textField($model,'thumbPath',array('size'=>60,'maxlength'=>255)); ?>
		<?php echo $form->error($model,'thumbPath'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'uploadedBy'); ?>
		<?php echo $form->textField($model,'uploadedBy'); ?>
		<?php echo $form->error($model,'uploadedBy'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'uploadTime'); ?>
		<?php echo $form->textField($model,'uploadTime'); ?>
		<?php echo $form->error($model,'uploadTime'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'uploadIp'); ?>
		<?php echo $form->textField($model,'uploadIp',array('size'=>60,'maxlength'=>128)); ?>
		<?php echo $form->error($model,'uploadIp'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'priority'); ?>
		<?php echo $form->textField($model,'priority'); ?>
		<?php echo $form->error($model,'priority'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->